<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
    <title>商品详情-商品</title>
    <!--css style-->
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/style.css">
    <link rel="stylesheet" href="css/font.css">
    <link rel="stylesheet" href="css/pullToRefresh.css">
    <link rel="stylesheet" href="responsive/flexible.css">
    <script src="responsive/flexible.js"></script>
    <script src="js/iscroll.js"></script>
    <script src="js/pullToRefresh.js"></script>
</head>
<body class="detail inner_page">
    <div id="wrapper">
        <div class="page_container">
            <header>
                <a href="javascript:void(0)" class="pre_page"></a>
                <a href="index.html" class="home"></a>
                <nav>
                    <a href="detail_pro.html" class="active">商品</a>
                    <a href="detail_info.html">详情</a>
                    <a href="detail_com.html">评价</a>
                </nav>


            </header>


            <section class="main">
                <!--banner start-->
                <div class="wrapper">
                    <ul class="hiSlider">
                        <li class="hiSlider-item">
                            <a href="javascript:void(0)"><img src="img/detail_banner.jpg" alt=""></a>
                        </li>
                        <li class="hiSlider-item">
                            <a href="javascript:void(0)"><img src="img/detail_banner.jpg" alt=""></a>
                        </li>
                        <li class="hiSlider-item">
                            <a href="javascript:void(0)"><img src="img/detail_banner.jpg" alt=""></a>
                        </li>
                        <li class="hiSlider-item">
                            <a href="javascript:void(0)"><img src="img/detail_banner.jpg" alt=""></a>
                        </li>
                        <li class="hiSlider-item">
                            <a href="javascript:void(0)"><img src="img/detail_banner.jpg" alt=""></a>
                        </li>
                    </ul>

                </div>
                <!--banner end-->

                <!--商品信息-->
                <div class="container products">
                    <div class="info">
                        <h2>实木餐桌餐椅套装实木家具餐台餐桌椅组合餐厅小户型橡胶木餐桌 单餐桌 原木色</h2>
                        <div class="price"><em>￥<strong>3699.00</strong></em></div>
                        <p><span class="left">累计销量856笔</span>快递：免运费      发货地：广东深圳</p>
                    </div>
                </div>
                <ul class="list">
                    <li onclick="showCoupons()">
                        <a href="javascript:void(0)">
                            <span>领券</span>
                            <i>满2000减100</i><i>满2000减100</i><i>满2000减100</i>
                        </a>

                    </li>
                    <li onclick="showPromotion()"><a href="javascript:void(0)">
                        <span>促销</span><strong>满减活动：</strong>满3000立减200，满5000-400</a>
                    </li>
                    <li onclick="showSpecification()"><a href="javascript:void(0)"><span>已选</span>原木色烤漆面，一桌六椅，2件</a></li>
                    <li><a href="detail_com.html"><div class=" rate right">好评 <strong>99%</strong></div><span>评价(2356)</span></a></li>

                </ul>


                <!--评论-->
                <div class="comments">
                    <div class="container">


                        <ul>
                            <li>
                                <h3>
                                    <img src="img/red_star.png" alt=""><img src="img/red_star.png" alt=""><img src="img/red_star.png" alt=""><img src="img/red_star.png" alt=""><img src="img/red_star.png" alt="">
                                    <span>q***5</span>
                                </h3>
                                <p>
                                    购物方便，家具质量很好，值得信赖的商家，满意！！家具质量
                                    很好，值得信赖的商家，购物方便，家具质量很好，值得信赖...
                                </p>
                                <div class="pics">
                                    <img src="img/detail.png" alt="">
                                    <img src="img/detail.png" alt="">
                                    <img src="img/detail.png" alt="">
                                    <img src="img/detail.png" alt="">
                                </div>
                            </li>
                            <li>
                                <h3>
                                    <img src="img/red_star.png" alt=""><img src="img/red_star.png" alt=""><img src="img/red_star.png" alt=""><img src="img/red_star.png" alt=""><img src="img/red_star.png" alt="">
                                    <span>q***5</span>
                                </h3>
                                <p>
                                    购物方便，家具质量很好，值得信赖的商家，满意！！家具质量
                                    很好，值得信赖的商家，购物方便，家具质量很好，值得信赖...
                                </p>
                            </li>
                            <li>
                                <h3>
                                    <img src="img/red_star.png" alt=""><img src="img/red_star.png" alt=""><img src="img/red_star.png" alt=""><img src="img/red_star.png" alt=""><img src="img/red_star.png" alt="">
                                    <span>q***5</span>
                                </h3>
                                <p>
                                    购物方便，家具质量很好，值得信赖的商家，满意！！家具质量
                                    很好，值得信赖的商家，购物方便，家具质量很好，值得信赖...
                                </p>
                                <div class="pics">
                                    <img src="img/detail.png" alt="">
                                    <img src="img/detail.png" alt="">
                                    <img src="img/detail.png" alt="">
                                </div>
                            </li>

                        </ul>
                        <a href="javascript:void(0)" class="all_comments">查看全部评价</a>

                    </div>

                </div>


                <!--店铺信息-->
                <div class="shop_info">
                    <dl class="container">
                        <dt>
                        <div class="shop_pic">
                            <a href="shop_intro.html"><img src="img/shop.jpg" alt=""></a>
                        </div>
                        <h3><a href="shop_intro.html">宜家家居直营店</a></h3>
                        <p><a href="shop_intro.html">主营:家具家居 卫浴配件 家纺 家具 ...</a></p>
                        </dt>
                        <dd>
                    <span>
                        166 <br>
                        全部商品
                    </span>
                    <span>
                        23<br>
                        设计师
                    </span>
                    <span>
                        588<br>
                        效果图
                    </span>
                            <a href="shop_intro.html" class="to_shop"><img src="img/shop.png" alt="">进入店铺</a>
                        </dd>
                    </dl>
                </div>

                <!--推荐商品-->
                <div class="commends">

                    <div class="container commends_wrap">
                        <div class="commend">
                            <div class="tempWrap">
                                <div class="tempWrap">
                                    <ul class="pages">
                                        <li>
                                            <ol>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                            </ol>
                                        </li>
                                        <li>
                                            <ol>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                            </ol>
                                        </li>
                                        <li>
                                            <ol>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                            </ol>
                                        </li>
                                        <li>
                                            <ol>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                                <li>
                                                    <div class="pic">
                                                        <a href="detail_pro.html">
                                                            <img src="img/product.jpg" alt="">
                                                        </a>
                                                    </div>
                                                    <p><a href="detail_pro.html">餐桌 实木餐桌餐桌
                                                        椅组合 折叠伸缩...</a></p>
                                                    <span>￥2369.00</span>
                                                </li>
                                            </ol>
                                        </li>

                                    </ul>

                                </div>
                            </div>
                        </div>

                        <div class="hd">
                            <ul></ul>
                        </div>


                    </div>


                </div>




                <!--产品参数-->
                <div class="mask specification">
                    <form class="speci_form" id="specification">
                        <i></i>
                        <div class="spe_header">
                            <div class="container">
                                <div class="pic">
                                    <img src="img/specification.jpg" alt="">
                                </div>
                                <div class="price"><em>￥<strong>3699.00</strong></em></div>
                                <p>请选择材质、规格</p>
                                <div class="clear"></div>
                            </div>

                        </div>
                        <dl class="container">
                            <dt>
                            <h3>颜色</h3>
                            </dt>
                            <dd class="color">
                                <input type="radio" name="color" id="color_1" value="1"><label for="color_1">1桌4椅(0896餐椅*4)</label>
                                <input type="radio" name="color" id="color_2" value="2"><label for="color_2">1桌4椅(0896餐椅*4)</label>
                                <input type="radio" name="color" id="color_3" value="3"><label for="color_3">1桌4椅(0945餐椅*4)</label>
                                <input type="radio" name="color" id="color_4" value="4"><label for="color_4">1桌4椅(0945餐椅*4)</label>
                                <input type="radio" name="color" id="color_5" value="5"><label for="color_5">1桌4椅(0896餐椅*4)</label>
                                <input type="radio" name="color" id="color_6" value="6"><label for="color_6">1桌4椅(0896餐椅*4)</label>
                                <input type="radio" name="color" id="color_7" value="7"><label for="color_7">1桌4椅(0945餐椅*4) </label>
                                <input type="radio" name="color" id="color_8" value="8"><label for="color_8">1桌4椅(0945餐椅*4)</label>
                                <input type="radio" name="color" id="color_9" value="9"><label for="color_9">单桌+0896餐椅*2+1006长凳单桌+0896餐椅*2</label>
                            </dd>

                            <dt>
                            <h3>尺寸</h3>
                            </dt>
                            <dd class="size">
                                <input type="radio" name="size" id="size_1" value="85cm_120cm"><label for="size_1">85cm*120cm</label>
                                <input type="radio" name="size" id="size_2" value="85cm_120cm"><label for="size_2">85cm*120cm </label>
                                <input type="radio" name="size" id="size_3" value="85cm_120cm"><label for="size_3">85cm*120cm</label>
                                <input type="radio" name="size" id="size_4" value="85cm_120cm"><label for="size_4">85cm*120cm</label>
                                <input type="radio" name="size" id="size_5" value="85cm_120cm"><label for="size_5">85cm*120cm</label>
                            </dd>
                            <dt>
                            <h3>数量</h3>
                            </dt>
                            <dd>
                                <div class="count">
                                    <a href="javascript:void(0)" class="minus">-</a>
                                    <input type="text" value="1" class="buy_count">
                                    <a href="javascript:void(0)" class="plus">+</a>
                                </div>
                            </dd>

                        </dl>
                        <div class="do wrapper">
                            <input type="button" value="加入购物车" onclick="checkSpec(2)">
                            <input type="submit" value="立即购买" onclick="checkSpec(1)">
                        </div>
                    </form>
                </div>

                <!--促销-->
                <div class="mask promotion">
                    <div class="pro_info">
                        <i></i>
                        <dl class="container">
                            <dt>促销</dt>
                            <dd>
                                <span>满减：</span>
                                <p>满3000立减200，满5000立减300，满3000立减200
                                    满5000立减300</p>
                                <div class="clear"></div>
                            </dd>
                            <dd>
                                <span>满减：</span>
                                <p>满3000即赠热销保险柜，赠完即止，满6000即赠热销保
                                    险柜，赠完即止，满9000即赠热销保险柜，赠完即止，
                                    满15000即赠热销保险柜，赠完即止，</p>
                                <div class="clear"></div>
                            </dd>
                            <dd>
                                <span>满减：</span>
                                <p>买即送高档椅子布套，赠送数量跟随套餐变化</p>
                                <div class="clear"></div>
                            </dd>

                        </dl>
                    </div>

                </div>

                <!--优惠券-->
                <div class="mask coupon_avail">
                    <div class="coupon_info">
                        <i></i>
                        <div class="coupon_list container">

                            <header>
                                <h3>宜家家居专营店可使用优惠券</h3>
                                <p>最多使用一张优惠券</p>
                            </header>
                            <a href="javascript:void(0)">
                                <div class="value">
                                    <h2><span>￥</span>250 <span>满1999可用</span></h2>

                                </div>
                                <div class="info">

                                    <p><span>仅可购买宜家家居店铺商品使用</span></p>
                                    <p><span>使用期限：2016.11.10-2016.11.20</span></p>
                                </div>
                                <input type="radio" name="coupon" value="" id="coupon_1"><label for="coupon_1" >立即使用</label>

                            </a>
                            <a href="javascript:void(0)">
                                <div class="value">
                                    <h2><span>￥</span>250 <span>满1999可用</span></h2>

                                </div>
                                <div class="info">

                                    <p><span>仅可购买宜家家居店铺商品使用</span></p>
                                    <p><span>使用期限：2016.11.10-2016.11.20</span></p>
                                </div>
                                <input type="radio" name="coupon" value="" id="coupon_2" ><label for="coupon_2" >立即使用</label>
                            </a>
                            <a href="javascript:void(0)">
                                <div class="value">
                                    <h2><span>￥</span>250 <span>满1999可用</span></h2>

                                </div>
                                <div class="info">

                                    <p><span>仅可购买宜家家居店铺商品使用</span></p>
                                    <p><span>使用期限：2016.11.10-2016.11.20</span></p>
                                </div>
                                <input type="radio" name="coupon" value="" id="coupon_3" ><label for="coupon_3" >立即使用</label>
                            </a>



                        </div>

                    </div>
                </div>

                <!--加入购物车成功提示框-->
                <div class="to_cart_box">
                    <img src="img/success.png" alt="">
                    <p>加入购物车成功</p>
                </div>

                <a href="javascript:void(0)" class="to_top"><img src="img/to_top.png" alt="">上拉查看图文详情</a>
            </section>






        </div>
    </div>
    <div class="fix_nav">

        <div class="wrapper">
            <ul>
                <li>
                    <a href="shop_intro.html" class="shop">
                        店铺
                    </a>
                </li>
                <li>
                    <a href="javascript:void(0)" class="attention" onclick="payAttention(1)">
                        关注
                    </a>
                </li>
                <li>
                    <a href="cart.html" class="cart"><span>99</span>
                        购物车
                    </a>
                </li>

            </ul>
            <a class="add_2_cart" href="javascript:void(0)" onclick="addToCart(1);">
                加入购物车
            </a>

        </div>

    </div>

</body>
<script src="js/jquery.js"></script>
<script src="js/jquery.hiSlider.min.js"></script>
<script src="js/jquery.SuperSlide.2.1.2.js"></script>
<script>
    $(function(){

        /*banner animation*/
        $('.hiSlider').hiSlider({
            mode: 'fade',
            isSupportTouch: true,
            isShowTitle: false,
            titleAttr: function(curIdx){
                return $('img', this).attr('alt');
            }
        });

        var elSpecDes=$(".spe_header p");

        $(".speci_form :input").change(function(){
            var $this=$(this);
            var $label=$this.next();
            var $parent=$(".speci_form");
            /*if($this.is(":checked")){
                console.log($label);
                if(!elSpecDes.hasClass("red")){
                    elSpecDes.addClass("red");

                    elSpecDes.html($label.html());
                }else{
                    elSpecDes.html( elSpecDes.html()+","+$label.html());

                }

            }else{*/
                if($parent.find(":checked").length==0){
                    elSpecDes.html("请选择材质、规格");
                    elSpecDes.removeClass("red");
                    return;
                }else{
                    elSpecDes.addClass("red");
                    elSpecDes.html("");
                    var str="";
                    $parent.find(":checked").each(function(index){
                        console.log($(this).next().html());
                        str+=","+$(this).next().html();

                    });

                    elSpecDes.html(str.substr(1));
                }

            //}
        });


        $(".coupon_avail input").change(function () {
            var $parent=$(this).parent("a");
            $parent.addClass("drawn").siblings("a").removeClass("drawn");
        });

        $(".minus").click(function(){
            var iBuyCount = $(this).siblings(".buy_count").val();
            iBuyCount=(iBuyCount--)>1?iBuyCount:1;
            $(this).siblings(".buy_count").val(iBuyCount);
        });
        $(".plus").click(function(){
            var iBuyCount = $(this).siblings(".buy_count").val();
            iBuyCount++;
            $(this).siblings(".buy_count").val(iBuyCount);
        });
        $(".commends_wrap").fadeIn();
        $(".commends_wrap ").slide({
            titCell: ".hd ul",
            autoPage: "<li><a></a></li>",
            autoPage:true,
            mainCell: ".commend ul",
            effect: "leftLoop",
            autoPlay: true,
            vis: "auto",
            scroll: 1,
            easing: "easeInOutQuad",
            interTime: 5000
        });

        $(".mask i").on("click",function(){
            $(this).parents(".mask").hide();
        })
        /*to top*/

        $(".to_top").click(function(){
            $(document).scrollTop(0);
        });
    });
    function showCoupons(){
        $(".coupon_avail").show();
    }
    function showPromotion(){
        $(".promotion").show();
    }
    function showSpecification(){
        $(".specification").show();
    }
    function checkSpec(mark){
        var errFlag=false;
        if($(".color input:checked").length==0){
            alert("请选择商品颜色");
            errFlag=true;
        }
        if($(".size input:checked").length==0){
            alert("请选择商品尺寸");
            errFlag=true;

        }
        if(errFlag){
            if(mark==1){
                $(".speci_form").submit(false);
            }
        }else{
            if(mark==2){
                addToCart(1);
            }
        }

    }
    function addToCart(id){
        $(".to_cart_box").show();
        setTimeout(function(){
            $(".to_cart_box").hide();
        },2000);
    }

    function payAttention(id) {
        $(".attention").addClass("active");
    }

</script>
<script>

    refresher.init({
        id: "wrapper",
        pullUpAction: Load
    });
    var generatedCount = 0;


    function Load() {
        setTimeout(function () {
            window.location.href="http://www.baidu.com";
        }, 1000);
    }
</script>
</html>